<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>打印云购出库单</title>
<style>
    body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
        background-color: white;
        color: black;
    }
.order_table { width:650px;; margin:0px; overflow:hidden; page-break-after: always;}
.order_table table th { font-size:13px; border-bottom:2px #000 solid; height:35px; }
/*.order_table table td { border-bottom:1px #000 dashed;}*/
.order_table table td .num { text-align:center; }
.order_table tfoot td { border:0px;}
.ptd td { font-size:13px; line-height: 1.5em;}
.ptd ,.nob {width:650px;}
.nob ,.nob td {border:0px;}
</style>
</head>
<body>
<volist name="ases" id="o">
<div class="order_table">
<table width="650" border="0" cellspacing="0" cellpadding="0" class="nob" style="border-bottom: 2px #aaa solid;">
  <tr>
      <td width="200"><empty name="noprint"><div style=" padding-left: 10px;width:180px; height:40px; overflow:hidden;"></div></empty></td>
    <td align="right" valign="bottom"><em>订单号：{$o['sn']}<br /><span style="color: #666;font-size: 12px;">下单时间：{$o['add_time']|date='Y-m-d H:i:s',###}</span></em></td>
  </tr>
</table>
<div style="line-height:1.5em; float: left; width: 200px; font-size: 12px; padding: 10px 0 10px 20px;">
    <strong>收货地址：</strong><br />{$Area[$o['address']['province']]['name']}{$Area[$o['address']['city']]['name']}{$Area[$o['address']['district']]['name']}{$o.address.address}
</div>
<div style="line-height:1.5em; float: right; width: 250px; font-size: 12px; padding: 10px 0 10px 0;">
    <strong>{$o.address.consignee}</strong><br />
    电话：{$o.address.tel}<br />
    手机：{$o.address.mobile}<br />
</div>
<div style="clear: both;"></div>
<div style="line-height:1.5em; float: left; width: 200px; font-size: 12px; padding: 10px 0 10px 20px;">
    <strong>订单留言：</strong><br />{$o['ext']['beizhu']['value']}</div>
<div style="clear: both;"></div>
<table border="0" cellpadding="2" cellspacing="0" class="ptd">
    <thead>
    <tr valign="bottom">
    <th>商品名称</th>
    <th>商品编号</th>
    <th>数量</th>
    <th>单价</th>
    
    <th>金额</th>
  </tr>
  </thead>
  
  <tbody>
	<volist name="o.goods" id="vo">
  <tr valign="bottom">
    <td>{$vo['product_name']}</td>
    <td align="center">{$vo['product_psn']}</td>
    <td align="center">{$vo['number']}</td>
    <td align="center">{$vo['saleprice']/100|number_format=###,2}</td>
    
    <td align="center"><span class="count_price" id="count_price_{$vo['id']}">{$vo['allsaleprice']/100|number_format=###,2}</span></td>
  </tr>
	</volist>
	<PHP>$acv=0;</PHP>
	<volist name="o.finance" id="scv">
	<PHP>
	if($scv['userid']==$o['ext']['userid']['value']){
		if($scv['action']=='BUY'){
			$acv+=$scv['value'];
		}
	}
	</PHP>
	{if $scv['code']=='express' || $scv['action']=='OOS' || $scv['action']=='REFUND'}
  <tr>
	<td align="center">{$scv['remark']}</td>
	<td align="center"></td>
	<td align="center">{$scv['value']/100|number_format=###,2}</td>
	<td align="center">&nbsp;</td>
	<td align="center">{if $scv['status']==1}已支付{else}未支付{/if}</td>
  </tr>
  {/if}
	</volist>
    </tbody>
    <tfoot>
  <tr>
  	<td colspan="2">&nbsp;</td>
  	<td colspan="2" style="border-top: 1px #000 solid;">合计(￥)：</td>
  	<td style="border-top: 1px #000 solid;">{$acv/100|number_format=###,2}</td>
  </tr> 
  </tfoot>
</table>
<empty name="noprint">
<p style="border-top: 2px #aaa solid; text-align: center; color: #666;">{$o['order']['sn']}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联酷网络科技有限公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;电话：400-833-3818&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;网址：www.smw01.com</p>
<else />
<table>
    <tr><td>&nbsp;</td></tr>
    <tr><td>&nbsp;</td></tr>
    <tr><td>&nbsp;</td></tr>
</table>
</empty>
</div>
</volist>
<empty name="noprint">
<script type="text/javascript">
        window.focus();
        window.print();
</script>
</empty>
</body>
</html>